﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TeamTasker.Server.BusinessLogic.Format.Support
{
    public class DateFormatter : ITypeFormatter
    {
        public string ValueToString(object value)
        {
            if (value == null)
            {
                return "n\a";
            }
            else
            {
                DateTime dt = (DateTime)value;
                return dt.ToShortDateString();
            }
        }
    }
}
